package org.dromara.business.domain.bo;

import org.dromara.business.domain.UserLevel;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;

/**
 * 账号等级与经验值对应业务对象 t_user_level
 *
 * @author Hao Tong Xue
 * @date 2025-04-03
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = UserLevel.class, reverseConvertGenerate = false)
public class UserLevelBo extends BaseEntity {

    /**
     * 等级 ID
     */
    @NotNull(message = "等级 ID不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 账号等级
     */
    @NotNull(message = "账号等级不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long userLevel;

    /**
     * 等级名称
     */
    @NotBlank(message = "等级名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String levelName;

    /**
     * 升级所需经验值
     */
    @NotNull(message = "升级所需经验值不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long requiredExperience;

    /**
     * 每日可获取经验上限 -> 预留
     */
    private Long dailyExpLimit;

    /**
     * 备注
     */
    private String remark;


}
